package com.woniuxy01;



public class Test01 {
    public static void main(String[] args) {
        Animal animal = new Cat();
        animal.eat();

       animal=new Dog();
       animal.eat();
    }
}
